package com.jiawa.train.member.service;

import com.jiawa.train.member.req.MemberLoginReq;
import com.jiawa.train.member.req.MemberRegisterReq;
import com.jiawa.train.member.req.MemberSendCodeReq;
import com.jiawa.train.member.resp.MemberLoginResp;

/**
 * @author zzl
 * @version 1.0
 */
public interface MemberService {
    /**
     * 查看会员人数
     * @return
     */
    public Integer count();

    /**
     * 注册
     * @param req
     * @return
     */
    public long register(MemberRegisterReq req);

    /**
     * 发送验证码
     * @param req
     */
    public String sendCode(MemberSendCodeReq req);

    /**
     * 登录
     * @param req
     * @return
     */
    public MemberLoginResp login(MemberLoginReq req);
}
